#include "mylogger.hh"
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;

void test0(){
    Mylogger::getInstance()->warn("this is a warn msg");
    Mylogger::getInstance()->error("this is an error msg");
    Mylogger::getInstance()->debug("this is a debug msg");
    Mylogger::getInstance()->info("this is an info msg");
    Mylogger::destroy();
}

void test1(){
    cout << __FILE__ << endl;
    cout << __func__ << endl;
    cout << __LINE__ << endl;
}

void test2(){
    Mylogger::getInstance()->warn(addPrefix("this is a warn msg"));
    Mylogger::destroy();
}

void test3(){
    LogWarn("The log is a warn msg");
    Mylogger::destroy();
}

int main(int argc, char * argv[])
{
    test0();
    test1();
    test2();
    test3();
    return 0;
}


